# -*- coding: shift-jis -*-

import syck
import sys

print syck.dump(list(syck.load_documents(open(sys.argv[1]))))
